package com.uit.gis.util;

/**
 * Define name of shapes
 * 
 * @author ThaiBao
 *
 */
public enum ShapeName {

	LINE("line"),
	TRIANCLE("triangle"),
	RECTANGLE("rect"),
	ELLIPSE("ellipse"), 
	BOX("box"),
	CUSTOM_SHAPE("custom_shape"),
	POINTS("points"),
	QUAD("quad"),
	ARC("arc"),
	CIRCLE("circle");
	String name; 
	ShapeName(String name) {
		this.name = name;
	}
	public String getName()
	{
		return this.name;
	}
	public ShapeName getShape(String name)
	{
		for (ShapeName i : ShapeName.values()) {
			if(name.equals(i.name))
				return i;
		}
		return null;
	}
}
